
interface Double extends IRunning,ISwimming{
}
class Dog implements Double{
    @Override
    public void run() {
        System.out.println("狗会跑");
    }

    @Override
    public void swim() {
        System.out.println("狗会游泳");
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.run();
        dog.swim();
    }
}
